package com.ruitu.mall_98_1.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;
import com.ruitu.router_module.bean.api.PageModel;
import com.ruitu.router_module.bean.product.ProList;

import rx.Observable;

public interface ProListByModelContract {
    public interface View extends BaseView {
        public abstract void onReqComlete(boolean isSuc, int type, Object data);//type 1 请求商品列表完成
    }

    public abstract class Presenter extends BasePresenter<View, Model> {
        // 模块类型（2，淘一淘；3，逛一逛；4，吃货街；5，厂家清仓；6，地方特产；7，行业精品；8，推荐商品 9 家居小世界）
        public abstract void reqProList(String type, String cityName, String keys, int page, int size);
    }

    public interface Model extends BaseModel {
        Observable<BaseResult<PageModel<ProList>>> reqProList(String type, String cityName, String keys, int page, int size);
    }
}